package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author long
 * @since 2022-10-12
 */
@Getter
@Setter
  @TableName("t_car")
@ApiModel(value = "Car对象", description = "")
public class Car implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("车辆表 主键 自增")
      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("逻辑删除,不为null,默认为0，(0:未删除 1:已删除)")
      @TableLogic
      private String isDeleted;

      @ApiModelProperty("车牌号码")
      private String num;

      @ApiModelProperty("车牌类型：0蓝牌,1绿牌,2黄牌,3其他")
      private String type;

      @ApiModelProperty("所属用户id")
      private Long userId;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;

      @ApiModelProperty("车辆状态：0：禁用，1：正常（默认值1）")
      private String status;
}
